package isssr.bean.boundary;

import isssr.bean.control.RetrieveGoalListByOwnerControl;
import isssr.bean.entity.OrganizationalGoal;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class FormReadGoalList implements Serializable {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2510177505862733549L;
	private List<OrganizationalGoal> organizational_goals;
	

	public FormReadGoalList()
	{
		
		this.organizational_goals = new ArrayList<OrganizationalGoal>();
		
		OrganizationalGoal goal = new OrganizationalGoal();
		goal.setTitle("goal di prova");
		goal.setDescription("descrizione di prova");
		
		
		this.organizational_goals.add(goal );
		System.out.println("elementi in lista: " + this.organizational_goals.size());
		this.organizational_goals = new RetrieveGoalListByOwnerControl().getOrganizationalGoalByUser();
		System.out.println("elementi in lista dopo: " + this.organizational_goals.size());
	}
	
	
	public List<OrganizationalGoal> getOrganizational_goals() {
		return organizational_goals;
	}

	
	public void setOrganizational_goals(List<OrganizationalGoal> organizational_goals) {
		this.organizational_goals = organizational_goals;
	}
	
	
}
